﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DeliveryOrder.aspx.cs"
    Inherits="WMS6.Web.TransportManagement.DeliveryOrder" meta:resourcekey="Page" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>DeliveryOrder</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />

    <script src="../Js/jquery.js" type="text/javascript"></script>

    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>

    <script src="../Js/util.js" id="js" type="text/javascript"></script>

    <script src="../Js/InitPage.js" type="text/javascript"></script>

    <script src="../Js/Verification.js" type="text/javascript"></script>

    <script src="../Js/calendar.js" type="text/javascript" charset="gb2312"></script>

    <script src="../Js/checkbox.js" type="text/javascript"></script>

    <script type="text/javascript">
        //初始化页面
        window.onload = function(){
            initEditNewPage();
        }
        
        function newDeliveryOrder()
        {
            var from = document.getElementById("hdnFrom").value;
            window.location.href = "DeliveryOrder.aspx?from=" + escape(from);
            return false;
        }
        
        //弹出窗口选择承运商
        function selectVendor()
        {
            var rtnValue = popModalWindow('../Configuration/CarrierQuery.aspx?action=txtCarrierID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtCarrierID").focus();
                document.getElementById("txtCarrierID").value = rtnValue;
            }
        }
       
       //弹出窗口选择货主
        function selectOwner()
        {
            var rtnValue = popModalWindow('../Configuration/OwnerQuery.aspx?action=txtOwnerID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtOwnerID").focus();
                document.getElementById("txtOwnerID").value = rtnValue;
            }
        }
        
        //弹出窗口选择提货地址
        function selectLocAddr()
        {
            var rtnValue = popModalWindow('../Configuration/LocAddrQuery.aspx?action=txtLocAddrID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtLocAddrID").focus();
                document.getElementById("txtLocAddrID").value = rtnValue;
                __doPostBack("txtLocAddrID_TextChanged","");
            }
        }
        
        //弹出窗口选择送货地址
        function selectLocAddr2()
        {
            var rtnValue = popModalWindow('../Configuration/LocAddrQuery.aspx?action=txtDeliveryLocID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtDeliveryLocID").focus();
                document.getElementById("txtDeliveryLocID").value = rtnValue;
                 __doPostBack("txtDeliveryLocID_TextChanged","");
            }
        }
        
        
        //弹出窗口选择出库订单
        function selectOrders()
        {
            var rtnValue = popModalWindow('../Outbound/ShippingOrderQuery.aspx?action=txtExternOrderID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtExternOrderID").focus();
                document.getElementById("txtExternOrderID").value = rtnValue;
                 __doPostBack("txtExternOrderID_TextChanged","");
            }
        }
        
         //弹出窗口选择批量订单
        function selectBatchOrders()
        {
            var rtnValue = popModalWindow('../Outbound/WaveQuery.aspx?action=txtExternOrderID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtExternOrderID").focus();
                document.getElementById("txtExternOrderID").value = rtnValue;
                 __doPostBack("txtExternOrderID_TextChanged","");
            }
        }
        
        //弹出窗口选择客户
        function selectCustom()
        {
            var rtnValue = popModalWindow('../Configuration/CustomerQuery.aspx?action=txtCustomerID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtCustomerID").focus();
                document.getElementById("txtCustomerID").value = rtnValue;
                __doPostBack("txtCustomerID_TextChanged","");
            }
        }
        
        //弹出窗口选择发货订单
        function popOrderQuery()
        {
            var rtnValue = popModalWindow('../Outbound/ShippingOrderQuery.aspx?action=txtExternOrderID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;')
            var temp = document.getElementById("hdnInportValue").value ;
            if(rtnValue != null && rtnValue.toString() != "")
            {
                setTab('one',1,7);
                document.getElementById("txtExternOrderID").value = rtnValue;               
//                if(rtnValue == temp)
//                {
                if (document.getElementById("btnInputSO") != null)
                    {       
                        document.getElementById("hdnPageType").value = "1";
                        document.getElementById("btnInputSO").click();
                    }
//                }
            }
            document.getElementById("hdnInportValue").value = rtnValue;
        }
        
        function showAction()
		{	
			var pos = getElementPos("btnAction");	
			document.getElementById("actionDiv").style.top = pos.y+17;
			document.getElementById("actionDiv").style.left = pos.x;  			
			document.getElementById("hiddenFlag").value = '1';
		}
		
		function hiddenDiv()
		{
			var flag = document.getElementById("hiddenFlag").value
			if(flag == "1")
			{
				document.getElementById("actionDiv").style.display = "block";
				document.getElementById("hiddenFlag").value = '0';
			}
			else 
			{
				document.getElementById("actionDiv").style.display = "none";
			}
		}
		
		
		function confirmMsg(code)
        {
            if(code == "C001")
            {
                if(confirm('<%=GetGlobalMsgResource("C001") %>'))
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }
            else if(code == "C010")
            {
                if(confirm('<%=GetGlobalMsgResource("C010") %>'))
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }
            else if(code == "F8100_015")
            {
                if(confirm('<%=GetGlobalMsgResource("F8100_015") %>'))
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }

        }

        function CalcAmount() {
            var formatLen = document.getElementById("hdnNumFormat").value;
            var freight = document.getElementById("txtFreight").value;
            var takefee = document.getElementById("txtTakeFee").value;
            if (formatLen == "") formatLen = 0;
            if (freight == "") freight = 0;
            if (takefee == "") takefee = 0;
            document.getElementById("txtAmount").value = (Number(freight) + Number(takefee)).toFixed(Number(formatLen));
            //document.getElementById("txtAmount").value = eval(freight + takefee);
        }
        
    </script>

</head>
<body>
    <form id="F8011" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div id="div_top">
            <table>
                <tr>
                    <td valign="bottom">
                        <asp:Label ID="lblOwner" runat="server" CssClass="label_header" Text="运单" meta:resourcekey="lblOwner"></asp:Label>
                    </td>
                    <td>
                        <asp:Button ID="btnGoBack" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnGoBack%>"
                            Enabled="False" CausesValidation="False" OnClick="btnGoBack_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnNew" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnNew%>"
                            Enabled="False" AccessKey="n" OnClientClick="newDeliveryOrder(); return false;" />
                    </td>
                    <td>
                        <asp:Button ID="btnSave" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnSave%>"
                            Enabled="False" AccessKey="s" OnClick="btnSave_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnDelete" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnDelete%>"
                            Enabled="False" AccessKey="d" OnClientClick="javascript:if(confirmMsg('C001')) return true; else return false;"
                            OnClick="btnDelete_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnCopy" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnCopy%>"
                            Enabled="False" AccessKey="c" OnClick="btnCopy_Click" />
                    </td>
                    <td>
                        <input runat="server" id="btnAction" type="button" value="<%$Resources:ButtonResource,btnAction%>"
                            class="button" onclick="showAction(); return false;" />
                        <asp:Button ID="btnInputSO" runat="server" Text="<%$Resources:ButtonResource,btnInputSO%>"
                            Style="display: none" OnClick="btnInputSO_Click" />
                    </td>
                </tr>
            </table>
        </div>
        <asp:UpdatePanel ID="up1" runat="server">
            <ContentTemplate>
                <div>
                    <asp:Label ID="lblMsg" runat="server" CssClass="label_message" meta:resourcekey="lblMsg"></asp:Label>
                </div>
                <div id="div_menu">
                    <div style="float: left; width: 8px;">
                        <div class="tabL" id="divL1">
                        </div>
                    </div>
                    <div style="float: left;" class="tabLabelCont tabCur" onclick="setTab('one',1,7)"
                        id="divM1">
                        <asp:Label ID="one1" CssClass="hover" runat="server" meta:resourcekey="one1">常规</asp:Label></div>
                    <div style="float: left; margin-right: 2px;">
                        <div class="tabR" id="divR1">
                        </div>
                    </div>
                    <div style="float: left; width: 8px;">
                        <div class="tabL_1" id="divL2">
                        </div>
                    </div>
                    <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',2,7);"
                        id="divM2">
                        <asp:Label ID="one2" CssClass="navigationlabel" runat="server" meta:resourcekey="one2">&nbsp;客户&nbsp;</asp:Label></div>
                    <div style="float: left; margin-right: 2px;">
                        <div class="tabR_1" id="divR2">
                        </div>
                    </div>
                    <div style="float: left; width: 8px;">
                        <div class="tabL_1" id="divL3">
                        </div>
                    </div>
                    <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',3,7);"
                        id="divM3">
                        <asp:Label ID="one3" CssClass="navigationlabel" runat="server" meta:resourcekey="one3">&nbsp;提货地址&nbsp;</asp:Label></div>
                    <div style="float: left; margin-right: 3px;">
                        <div class="tabR_1" id="divR3">
                        </div>
                    </div>
                    <div style="float: left; width: 8px;">
                        <div class="tabL_1" id="divL4">
                        </div>
                    </div>
                    <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',4,7);"
                        id="divM4">
                        <asp:Label ID="one4" CssClass="navigationlabel" runat="server" meta:resourcekey="one4">&nbsp;送货地址&nbsp;</asp:Label></div>
                    <div style="float: left; margin-right: 2px;">
                        <div class="tabR_1" id="divR4">
                        </div>
                    </div>
                    <div style="float: left; width: 8px;">
                        <div class="tabL_1" id="divL5">
                        </div>
                    </div>
                    <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',5,7);"
                        id="divM5">
                        <asp:Label ID="one5" CssClass="navigationlabel" runat="server" meta:resourcekey="one5">自定义</asp:Label></div>
                    <div style="float: left; margin-right: 2px;">
                        <div class="tabR_1" id="divR5">
                        </div>
                    </div>
                    <div style="float: left; width: 8px;">
                        <div class="tabL_1" id="divL6">
                        </div>
                    </div>
                    <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',6,7);"
                        id="divM6">
                        <asp:Label ID="one6" CssClass="navigationlabel" runat="server" meta:resourcekey="one6">明细</asp:Label></div>
                    <div style="float: left; margin-right: 2px;">
                        <div class="tabR_1" id="divR6">
                        </div>
                    </div>
                    <div style="float: left; width: 8px;">
                        <div class="tabL_1" id="divL7">
                        </div>
                    </div>
                    <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',7,7);"
                        id="divM7">
                        <asp:Label ID="one7" CssClass="navigationlabel" runat="server" meta:resourcekey="one7">签收</asp:Label></div>
                    <div style="float: left; margin-right: 2px;">
                        <div class="tabR_1" id="divR7">
                        </div>
                    </div>
                </div>
                <div id="div_content">
                    <div id="con_one_1" style="display: block;">
                        <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                            <tr>
                                <td width="180px">
                                    <asp:Label ID="lblDeliveryOrderID" runat="server" CssClass="label" Text="运单编号" meta:resourcekey="lblDeliveryOrderID"></asp:Label><font
                                        class="must_input">*</font>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblDocType" runat="server" CssClass="label" Text="订单类型" meta:resourcekey="lblDocType"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblExternOrderID" runat="server" CssClass="label" Text="订单号" meta:resourcekey="lblExternOrderID"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblRequestedShipDate" runat="server" CssClass="label" Text="要求发货日期"
                                        meta:resourcekey="lblRequestedShipDate"></asp:Label><font class="must_input">*</font>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:TextBox ID="txtDeliveryOrderID" runat="server" CssClass="textbox" meta:resourcekey="txtDeliveryOrderID"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlDocType" runat="server" CssClass="mediumselectbox" meta:resourcekey="ddlDocType"
                                        AutoPostBack="True" OnTextChanged="ddlDocType_TextChanged">
                                    </asp:DropDownList>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtExternOrderID" runat="server" CssClass="textbox" AutoPostBack="True"
                                        OnTextChanged="txtExternOrderID_TextChanged" meta:resourcekey="txtExternOrderID"></asp:TextBox><img
                                            id="imgOrderID" src="../Images/icon_find.gif" alt="select one item" class="img"
                                            onclick="selectOrders();" runat="server" />
                                </td>
                                <td>
                                    <asp:TextBox ID="txtRequestedShipDate" runat="server" CssClass="textbox" meta:resourcekey="txtRequestedShipDate"></asp:TextBox><img
                                        src="../Images/calendar.gif" class="img" alt="请选择日期" onclick="setday(this,txtRequestedShipDate)" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="lblExternOrderID2" runat="server" CssClass="label" Text="快递单号" meta:resourcekey="lblExternOrderID2"></asp:Label><font
                                        class="must_input">*</font>
                                </td>
                                <td>
                                    <asp:Label ID="lblDeliveryOrderType" runat="server" CssClass="label" Text="运单类型"
                                        meta:resourcekey="lblDeliveryOrderType"></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="lblDeliveryOrderStatue" runat="server" CssClass="label" Text="运单状态"
                                        meta:resourcekey="lblDeliveryOrderStatue"></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="lblExpectArrivalDate" runat="server" CssClass="label" Text="预计到货日期"
                                        meta:resourcekey="lblExpectArrivalDate"></asp:Label><font class="must_input">*</font>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:TextBox ID="txtExternOrderID2" runat="server" CssClass="textbox" meta:resourcekey="txtExternOrderID2"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlDeliveryOrderType" runat="server" CssClass="mediumselectbox"
                                        meta:resourcekey="ddlDeliveryOrderType">
                                    </asp:DropDownList>
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlDeliveryOrderStatue" runat="server" CssClass="mediumselectbox"
                                        Enabled="false" meta:resourcekey="ddlDeliveryOrderStatue">
                                    </asp:DropDownList>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtExpectArrivalDate" runat="server" CssClass="textbox" meta:resourcekey="txtExpectArrivalDate"></asp:TextBox><img
                                        src="../Images/calendar.gif" class="img" alt="请选择日期" onclick="setday(this,txtExpectArrivalDate)" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="lblDeparture" runat="server" CssClass="label" Text="出发地" meta:resourcekey="lblDeparture"></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="lblDestination" runat="server" CssClass="label" Text="目的地" meta:resourcekey="lblDestination"></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="lblPickupType" runat="server" CssClass="label" Text="提货方式" meta:resourcekey="lblPickupType"></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="lblTransferType" runat="server" CssClass="label" Text="运输方式" meta:resourcekey="lblTransferType"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:TextBox ID="txtDeparture" runat="server" CssClass="textbox" Enabled="False"
                                        meta:resourcekey="txtDeparture"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtDestination" runat="server" CssClass="textbox" Enabled="False"
                                        meta:resourcekey="txtDestination"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlPickupType" runat="server" CssClass="mediumselectbox" meta:resourcekey="ddlPickupType">
                                    </asp:DropDownList>
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlTransferType" runat="server" CssClass="mediumselectbox"
                                        meta:resourcekey="ddlTransferType">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="lblTotalQty" runat="server" CssClass="label" Text="总数量" meta:resourcekey="lblTotalQty"></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="lblTotalWeight" runat="server" CssClass="label" Text="总重量" meta:resourcekey="lblTotalWeight"></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="lblTotalCube" runat="server" CssClass="label" Text="总体积" meta:resourcekey="lblTotalCube"></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="lblEntrustDate" runat="server" CssClass="label" Text="委托日期" meta:resourcekey="lblEntrustDate"></asp:Label><font
                                        class="must_input">*</font>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:TextBox ID="txtTotalQty" runat="server" CssClass="textbox" meta:resourcekey="txtTotalQty"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtTotalWeight" runat="server" CssClass="textbox" meta:resourcekey="txtTotalWeight"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtTotalCube" runat="server" CssClass="textbox" meta:resourcekey="txtTotalCube"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtEntrustDate" runat="server" CssClass="textbox" meta:resourcekey="txtEntrustDate"></asp:TextBox><img
                                        src="../Images/calendar.gif" class="img" alt="请选择日期" onclick="setday(this,txtEntrustDate)" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="lblCarrierID" runat="server" CssClass="label" Text="承运商" meta:resourcekey="lblCarrierID"></asp:Label>
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                                <td>
                                    <asp:Label ID="lblBillingType" runat="server" CssClass="label" Text="计费类型" meta:resourcekey="lblBillingType"></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="lblPaymentType" runat="server" CssClass="label" Text="付款方式" meta:resourcekey="lblPaymentType"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:TextBox ID="txtCarrierID" runat="server" CssClass="textbox" meta:resourcekey="txtCarrierID"></asp:TextBox><img
                                        src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectVendor();" />
                                </td>
                                <td>
                                    <asp:CheckBox ID="chePriority" runat="server" CssClass="checkbox" Text="加急" meta:resourcekey="chePriority" />
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlBillingType" runat="server" CssClass="mediumselectbox" meta:resourcekey="ddlBillingType">
                                    </asp:DropDownList>
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlPaymentType" runat="server" CssClass="mediumselectbox" meta:resourcekey="ddlPaymentType">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    &nbsp;
                                </td>
                                <td>
                                    <asp:Label ID="lblFreight" runat="server" CssClass="label" Text="运费" meta:resourcekey="lblFreight"></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="lblTakeFee" runat="server" CssClass="label" Text="提货费" meta:resourcekey="lblTakeFee"></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="lblAmount" runat="server" CssClass="label" Text="金额" meta:resourcekey="lblAmount"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:CheckBox ID="cbxReceipted" runat="server" CssClass="checkbox" Text="已收款" meta:resourcekey="cbxReceipted" />
                                </td>
                                <td>
                                    <asp:TextBox ID="txtFreight" runat="server" CssClass="textbox" onblur="JavaScript:dataVer._Is123OrX(this,'lblMsg');CalcAmount();"
                                        meta:resourcekey="txtFreight"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtTakeFee" runat="server" CssClass="textbox" onblur="JavaScript:dataVer._Is123OrX(this,'lblMsg');CalcAmount();"
                                        meta:resourcekey="txtTakeFee"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtAmount" runat="server" CssClass="textbox" meta:resourcekey="txtAmount"></asp:TextBox>
                                </td>
                            </tr>
                            <tr style="height: 10px;">
                                <td>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div id="con_one_2" style="display: none;">
                        <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                            <tr>
                                <td width="180px">
                                    <asp:Label ID="lblCustomerID" runat="server" CssClass="label" Text="客户代码" meta:resourcekey="lblCustomerID"></asp:Label>
                                </td>
                                <td width="360px" colspan="2">
                                    <asp:Label ID="lblCName" runat="server" CssClass="label" Text="客户名称" meta:resourcekey="lblCName"></asp:Label>
                                </td>
                                <td width="180px">
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:TextBox ID="txtCustomerID" runat="server" CssClass="textbox" AutoPostBack="True"
                                        OnTextChanged="txtCustomerID_TextChanged" meta:resourcekey="txtCustomerID"></asp:TextBox><img
                                            src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectCustom();" />
                                </td>
                                <td width="360px" colspan="2">
                                    <asp:TextBox ID="txtCustomerName" runat="server" CssClass="largetextbox" MaxLength="15"
                                        meta:resourcekey="txtCustomerName"></asp:TextBox>
                                </td>
                                <td width="180px">
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:Label ID="lblCCity" runat="server" CssClass="label" Text="城市" meta:resourcekey="lblCCity"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblCProvince" runat="server" CssClass="label" Text="省份" meta:resourcekey="lblCProvince"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblCContact1" runat="server" CssClass="label" Text="联系人1" meta:resourcekey="lblCContact1"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblCContact2" runat="server" CssClass="label" Text="联系人2" meta:resourcekey="lblCContact2"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:TextBox ID="txtCCity" runat="server" CssClass="textbox" meta:resourcekey="txtCCity"></asp:TextBox>
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtCProvince" runat="server" CssClass="textbox" meta:resourcekey="txtCProvince"></asp:TextBox>
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtCContanct1" runat="server" CssClass="textbox" meta:resourcekey="txtCContanct1"></asp:TextBox>
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtCContanct2" runat="server" CssClass="textbox" meta:resourcekey="txtCContanct2"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:Label ID="lblCZip" runat="server" CssClass="label" Text="邮编" meta:resourcekey="lblCZip"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblCCountry" runat="server" CssClass="label" Text="国家" meta:resourcekey="lblCCountry"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblCTel1" runat="server" CssClass="label" Text="电话" meta:resourcekey="lblCTel1"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblCTel2" runat="server" CssClass="label" Text="电话2" meta:resourcekey="lblCTel2"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:TextBox ID="txtCZip" runat="server" CssClass="textbox" onblur="Javascript:dataVer._IsPost(this,'lblMsg')"
                                        meta:resourcekey="txtCZip"></asp:TextBox>
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtCCountry" runat="server" CssClass="textbox" meta:resourcekey="txtCCountry"></asp:TextBox>
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtCTel1" runat="server" CssClass="textbox" onblur="Javascript:dataVer._IsPhone(this,'lblMsg')"
                                        meta:resourcekey="txtCTel1"></asp:TextBox>
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtCTel2" runat="server" CssClass="textbox" onblur="Javascript:dataVer._IsPhone(this,'lblMsg')"
                                        meta:resourcekey="txtCTel2"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px" colspan="2">
                                    <asp:Label ID="lblCAddress" runat="server" CssClass="label" Text="地址" meta:resourcekey="lblCAddress"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblCFax1" runat="server" CssClass="label" Text="传真1" meta:resourcekey="lblCFax1"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblCFax2" runat="server" CssClass="label" Text="传真2" meta:resourcekey="lblCFax2"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px" colspan="2" rowspan="3">
                                    <asp:TextBox ID="txtCAddress" runat="server" CssClass="largetextarea" TextMode="MultiLine"
                                        meta:resourcekey="txtCAddress"></asp:TextBox>
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtCFax1" runat="server" CssClass="textbox" onblur="Javascript:dataVer._IsFax(this,'lblMsg')"
                                        meta:resourcekey="txtCFax1"></asp:TextBox>
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtCFax2" runat="server" CssClass="textbox" onblur="Javascript:dataVer._IsFax(this,'lblMsg')"
                                        meta:resourcekey="txtCFax2"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="lblCEmail1" runat="server" CssClass="label" Text="电子邮件1" meta:resourcekey="lblCEmail1"></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="lblCEmail2" runat="server" CssClass="label" Text="电子邮件2" meta:resourcekey="lblCEmail2"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:TextBox ID="txtCEmail1" runat="server" CssClass="textbox" onblur="Javascript:dataVer._IsMail(this,'lblMsg')"
                                        meta:resourcekey="txtCEmail1"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtCEmail2" runat="server" CssClass="textbox" onblur="Javascript:dataVer._IsMail(this,'lblMsg')"
                                        meta:resourcekey="txtCEmail2"></asp:TextBox>
                                </td>
                            </tr>
                            <tr style="height: 10px;">
                                <td>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div id="con_one_3" style="display: none;">
                        <table width="540px" style="display: block; margin-left: 10px; margin-top: 10px;">
                            <tr>
                                <td>
                                    <asp:Label ID="lblLocAddrID" runat="server" CssClass="label" Text="地址ID" meta:resourcekey="lblLocAddrID"></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="lblPAddress" runat="server" CssClass="label" Text="地址" meta:resourcekey="lblPAddress"></asp:Label>
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:TextBox ID="txtLocAddrID" runat="server" CssClass="textbox" AutoPostBack="True"
                                        OnTextChanged="txtLocAddrID_TextChanged" meta:resourcekey="txtLocAddrID"></asp:TextBox><img
                                            src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectLocAddr();" />
                                </td>
                                <td colspan="2">
                                    <asp:TextBox ID="txtPAddress" runat="server" CssClass="largetextbox" meta:resourcekey="txtPAddress"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="lblPCountry" runat="server" CssClass="label" Text="国家" meta:resourcekey="lblPCountry"></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="lblPProvince" runat="server" CssClass="label" Text="省份" meta:resourcekey="lblPProvince"></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="lblPCity" runat="server" CssClass="label" Text="城市" meta:resourcekey="lblPCity"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:TextBox ID="txtPCountry" runat="server" CssClass="textbox" meta:resourcekey="txtPCountry"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtPProvince" runat="server" CssClass="textbox" meta:resourcekey="txtPProvince"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtPCity" runat="server" CssClass="textbox" meta:resourcekey="txtPCity"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="lblPContact" runat="server" CssClass="label" Text="联系人" meta:resourcekey="lblPContact"></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="lblPTel" runat="server" CssClass="label" Text="电话" meta:resourcekey="lblPTel"></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="lblPZip" runat="server" CssClass="label" Text="邮编" meta:resourcekey="lblPZip"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:TextBox ID="txtPContact" runat="server" CssClass="textbox" meta:resourcekey="txtPContact"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtPTel" runat="server" CssClass="textbox" meta:resourcekey="txtPTel"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtPZip" runat="server" CssClass="textbox" meta:resourcekey="txtPZip"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="lblPFax" runat="server" CssClass="label" Text="传真" meta:resourcekey="lblPFax"></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="lblPEmail" runat="server" CssClass="label" Text="Email" meta:resourcekey="lblPEmail"></asp:Label>
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:TextBox ID="txtPFax" runat="server" CssClass="textbox" meta:resourcekey="txtPFax"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtPEmail" runat="server" CssClass="textbox" meta:resourcekey="txtPEmail"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:CheckBox ID="chbPIsWeekEndWork" runat="server" CssClass="selectbox" Text="周末是否上班"
                                        meta:resourcekey="chbPIsWeekEndWork" />
                                </td>
                            </tr>
                            <tr style="height: 10px;">
                                <td>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div id="con_one_4" style="display: none;">
                        <table width="540px" style="display: block; margin-left: 10px; margin-top: 10px;">
                            <tr>
                                <td>
                                    <asp:Label ID="lblDeliveryLocID" runat="server" CssClass="label" Text="地址ID" meta:resourcekey="lblDeliveryLocID"></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="lblDAddress" runat="server" CssClass="label" Text="地址" meta:resourcekey="lblDAddress"></asp:Label>
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:TextBox ID="txtDeliveryLocID" runat="server" CssClass="textbox" AutoPostBack="True"
                                        OnTextChanged="txtDeliveryLocID_TextChanged" meta:resourcekey="txtDeliveryLocID"></asp:TextBox><img
                                            src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectLocAddr2();" />
                                </td>
                                <td colspan="2">
                                    <asp:TextBox ID="txtDAddress" runat="server" CssClass="largetextbox" meta:resourcekey="txtDAddress"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="lblDCountry" runat="server" CssClass="label" Text="国家" meta:resourcekey="lblDCountry"></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="lblDProvince" runat="server" CssClass="label" Text="省份" meta:resourcekey="lblDProvince"></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="lblDCity" runat="server" CssClass="label" Text="城市" meta:resourcekey="lblDCity"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:TextBox ID="txtDCountry" runat="server" CssClass="textbox" meta:resourcekey="txtDCountry"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtDProvince" runat="server" CssClass="textbox" meta:resourcekey="txtDProvince"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtDCity" runat="server" CssClass="textbox" meta:resourcekey="txtDCity"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="lblDContact" runat="server" CssClass="label" Text="联系人" meta:resourcekey="lblDContact"></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="lblDTel" runat="server" CssClass="label" Text="电话" meta:resourcekey="lblDTel"></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="lblDZip" runat="server" CssClass="label" Text="邮编" meta:resourcekey="lblDZip"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:TextBox ID="txtDContact" runat="server" CssClass="textbox" meta:resourcekey="txtDContact"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtDTel" runat="server" CssClass="textbox" meta:resourcekey="txtDTel"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtDZip" runat="server" CssClass="textbox" meta:resourcekey="txtDZip"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="lblDFax" runat="server" CssClass="label" Text="传真" meta:resourcekey="lblDFax"></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="lblDEmail" runat="server" CssClass="label" Text="Email" meta:resourcekey="lblDEmail"></asp:Label>
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:TextBox ID="txtDFax" runat="server" CssClass="textbox" meta:resourcekey="txtDFax"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtDEmail" runat="server" CssClass="textbox" meta:resourcekey="txtDEmail"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:CheckBox ID="chbDIsWeekEndWork" runat="server" CssClass="selectbox" Text="周末是否上班"
                                        meta:resourcekey="chbDIsWeekEndWork" />
                                </td>
                            </tr>
                            <tr style="height: 10px;">
                                <td>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div id="con_one_5" style="display: none;">
                        <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                            <tr>
                                <td width="180px">
                                    <asp:Label ID="lblUdf1" runat="server" CssClass="label" Text="自定义字段01" meta:resourcekey="lblUdf1"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblUdf6" runat="server" CssClass="label" Text="自定义字段06" meta:resourcekey="lblUdf6"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblCreatedBy" runat="server" CssClass="label" Text="制单人" meta:resourcekey="lblCreatedBy"></asp:Label>
                                </td>
                                <td width="180px">
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:TextBox ID="txtUdf1" runat="server" CssClass="textbox" meta:resourcekey="txtUdf1"></asp:TextBox>
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtUdf6" runat="server" CssClass="textbox" meta:resourcekey="txtUdf6"></asp:TextBox>
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtCreatedBy" runat="server" Enabled="False" CssClass="textbox"
                                        meta:resourcekey="txtCreatedBy"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:Label ID="lblUdf2" runat="server" CssClass="label" Text="自定义字段02" meta:resourcekey="lblUdf2"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblUdf7" runat="server" CssClass="label" Text="自定义字段07" meta:resourcekey="lblUdf7"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblCreatedDate" runat="server" CssClass="label" Text="制单日期" meta:resourcekey="lblCreatedDate"></asp:Label>
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:TextBox ID="txtUdf2" runat="server" CssClass="textbox" meta:resourcekey="txtUdf2"></asp:TextBox>
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtUdf7" runat="server" CssClass="textbox" meta:resourcekey="txtUdf7"></asp:TextBox>
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtCreatedDate" runat="server" Enabled="False" CssClass="textbox"
                                        meta:resourcekey="txtCreatedDate"></asp:TextBox>
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:Label ID="lblUdf3" runat="server" CssClass="label" Text="自定义字段03" meta:resourcekey="lblUdf3"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblUdf8" runat="server" CssClass="label" Text="自定义字段08" meta:resourcekey="lblUdf8"></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="lblRemark" runat="server" CssClass="label" Text="备注" meta:resourcekey="lblRemark"></asp:Label>
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:TextBox ID="txtUdf3" runat="server" CssClass="textbox" meta:resourcekey="txtUdf3"></asp:TextBox>
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtUdf8" runat="server" CssClass="textbox" meta:resourcekey="txtUdf8"></asp:TextBox>
                                </td>
                                <td width="360px" colspan="2" rowspan="3">
                                    <asp:TextBox ID="txtRemark" runat="server" CssClass="largetextarea" TextMode="MultiLine"
                                        meta:resourcekey="txtRemark"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:Label ID="lblUdf04" runat="server" CssClass="label" Text="自定义字段04" meta:resourcekey="lblUdf04"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblUdf09" runat="server" CssClass="label" Text="自定义字段09" meta:resourcekey="lblUdf09"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:TextBox ID="txtUdf4" runat="server" CssClass="textbox" meta:resourcekey="txtUdf4"></asp:TextBox>
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtUdf9" runat="server" CssClass="textbox" meta:resourcekey="txtUdf9"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:Label ID="lblUdf5" runat="server" CssClass="label" Text="自定义字段05" meta:resourcekey="lblUdf5"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblUdf10" runat="server" CssClass="label" Text="自定义字段10" meta:resourcekey="lblUdf10"></asp:Label>
                                </td>
                                <td width="180px">
                                    &nbsp;
                                </td>
                                <td width="180px">
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:TextBox ID="txtUdf5" runat="server" CssClass="textbox" meta:resourcekey="txtUdf5"></asp:TextBox>
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtUdf10" runat="server" CssClass="textbox" meta:resourcekey="txtUdf10"></asp:TextBox>
                                </td>
                                <td width="180px">
                                    &nbsp;
                                </td>
                                <td width="180px">
                                    &nbsp;
                                </td>
                            </tr>
                            <tr style="height: 10px;">
                                <td colspan="4">
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div id="con_one_6" style="display: none;">
                        <table width="1080px" style="display: block; margin-left: 10px; margin-top: 10px;">
                            <tr>
                                <td>
                                    <table>
                                        <tr>
                                            <td>
                                                <asp:Button ID="btnAddDetail" runat="server" CssClass="button" Enabled="False" Text="<%$Resources:ButtonResource,btnAddDetail%>"
                                                    OnClientClick="javascript:if(document.getElementById('hdnDeliveryOrderID').value == ''){ SethdnPageQty('hdnPageQty');  if(confirmMsg('F8100_015')) return true; else return false;}"
                                                    OnClick="btnAddDetail_Click" />
                                            </td>
                                            <td>
                                                <asp:Button ID="btnDeleteDetail" runat="server" CssClass="button" Enabled="False"
                                                    Text="<%$Resources:ButtonResource,btnDeleteDetail%>" OnClientClick="javascript:if(confirmMsg('C010')) return true; else return false;"
                                                    OnClick="btnDeleteDetail_Click" />
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr style="height: 10px;">
                                <td>
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <div>
                                        <asp:GridView ID="gvDeliveryOrderDetail" runat="server" AllowSorting="True" AutoGenerateColumns="False"
                                            AllowPaging="False" OnInit="gvDeliveryOrderDetail_Init" CssClass="gridview" DataKeyNames="DELIVERYORDERID,LINEID"
                                            Width="1250px" OnRowDataBound="gvDeliveryOrderDetail_RowDataBound" meta:resourcekey="gvDeliveryOrderDetail">
                                            <FooterStyle CssClass="GridViewFooterStyle" />
                                            <RowStyle CssClass="GridViewRowStyle" />
                                            <HeaderStyle CssClass="GridViewHeaderStyle" />
                                            <PagerStyle CssClass="GridViewPageStyle" />
                                            <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                                            <Columns>
                                                <asp:TemplateField meta:resourcekey="TemplateField">
                                                    <HeaderTemplate>
                                                        <asp:CheckBox ID="CheckBox1" runat="server" onclick="selectAll(this,'gvDeliveryOrderDetail');"
                                                            meta:resourcekey="CheckBox1" />
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <asp:CheckBox ID="chbSelect" runat="server" meta:resourcekey="chbSelect" />
                                                    </ItemTemplate>
                                                    <FooterTemplate>
                                                        <asp:CheckBox ID="CheckBox2" runat="server" onclick="selectAll(this,'gvDeliveryOrderDetail');"
                                                            meta:resourcekey="CheckBox2" />
                                                    </FooterTemplate>
                                                    <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_40" />
                                                    <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_40" />
                                                </asp:TemplateField>
                                                <asp:BoundField HeaderText="序号" FooterText="序号" meta:resourcekey="BoundField">
                                                    <ItemStyle CssClass="GridViewRowWidth_50" />
                                                </asp:BoundField>
                                                <asp:TemplateField HeaderText="明细" FooterText="明细" meta:resourcekey="Detail">
                                                    <ItemTemplate>
                                                        <a id="DeliveryOrderDetail" runat="server" onserverclick="SavePageQuery_Click" title='<%# Eval("LineID").ToString() %>'
                                                            target="_self">
                                                            <img src="../Images/icon_edit.gif" class="img" style="border: none 0px blue;" alt="DeliveryOrderDetail" /></a>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="GridViewRowWidth_50" HorizontalAlign="Center" />
                                                </asp:TemplateField>
                                                <asp:BoundField DataField="ExternOrderID" HeaderText="发货订单号" FooterText="发货订单号" SortExpression="ExternOrderID"
                                                    meta:resourcekey="ExternOrderID">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="ExternOrderLineID" HeaderText="发货订单行号" FooterText="发货订单行号"
                                                    SortExpression="ExternOrderLineID" meta:resourcekey="ExternOrderLineID">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="OwnerID" HeaderText="货主" FooterText="货主" SortExpression="OwnerID"
                                                    meta:resourcekey="OwnerID">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="SkuID" HeaderText="货品" FooterText="货品" SortExpression="SkuID"
                                                    meta:resourcekey="SkuID">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="DOD_STATUS" HeaderText="状态" FooterText="状态" SortExpression="DOD_STATUS"
                                                    meta:resourcekey="DOD_STATUS">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="PackID" HeaderText="包装" FooterText="包装" SortExpression="PackID"
                                                    meta:resourcekey="PackID">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:TemplateField FooterText="订单数量" HeaderText="订单数量" SortExpression="ORIGINALQTY"
                                                    meta:resourcekey="OriginalQTY">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblOriginalqty" runat="server" Text='<%# GetPreferenceDigit(Eval("ORIGINALQTY").ToString()) %>'
                                                            meta:resourcekey="lblOriginalqty"></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:TemplateField>
                                                <asp:TemplateField FooterText="装车数量" HeaderText="装车数量" SortExpression="LOADINGQTY"
                                                    meta:resourcekey="TemplateField">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblLoadingqty" runat="server" Text='<%# GetPreferenceDigit(Eval("LOADINGQTY").ToString()) %>'
                                                            meta:resourcekey="lblLoadingqty"></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:TemplateField>
                                                <asp:BoundField DataField="Remark" HeaderText="备注" FooterText="备注" SortExpression="Remark"
                                                    meta:resourcekey="Remark">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                            </Columns>
                                        </asp:GridView>
                                    </div>
                                </td>
                            </tr>
                            <tr style="height: 30px;">
                                <td>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div id="con_one_7" style="display: none;">
                        <table width="1080px" style="display: block; margin-left: 10px; margin-top: 10px;">
                            <tr>
                                <td>
                                    <table>
                                        <tr>
                                            <td width="180px">
                                                <asp:Label ID="lblSignedDate" runat="server" CssClass="label" Text="签收时间" meta:resourcekey="lblSignedDate"></asp:Label><font
                                                    class="must_input">*</font>
                                            </td>
                                            <td width="180px">
                                                <asp:Label ID="lblSignedBy" runat="server" CssClass="label" Text="签收人" meta:resourcekey="lblSignedBy"></asp:Label><font
                                                    class="must_input">*</font>
                                            </td>
                                            <td>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:TextBox ID="txtSignedDate" runat="server" CssClass="textbox" onblur="Javascript:dataVer._IsTime(this,'lblMsg')"
                                                    meta:resourcekey="txtSignedDate"></asp:TextBox><img src="../Images/calendar.gif"
                                                        class="img" alt="请选择日期" onclick="setday(this,txtSignedDate)" />
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtSignedBy" runat="server" CssClass="textbox" meta:resourcekey="txtSignedBy"></asp:TextBox>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr style="height: 10px;">
                                <td>
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <div>
                                        <asp:GridView ID="gvPodDetail" runat="server" AllowSorting="True" AutoGenerateColumns="False"
                                            AllowPaging="False" CssClass="gridview" DataKeyNames="LineID,OwnerID,SkuID,PackID,ExternOrderLineID"
                                            Width="1400px" OnRowDataBound="gvPodDetail_RowDataBound" meta:resourcekey="gvPodDetail">
                                            <FooterStyle CssClass="GridViewFooterStyle" />
                                            <RowStyle CssClass="GridViewRowStyle" />
                                            <HeaderStyle CssClass="GridViewHeaderStyle" />
                                            <PagerStyle CssClass="GridViewPageStyle" />
                                            <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                                            <Columns>
                                                <asp:BoundField HeaderText="序号" FooterText="序号" meta:resourcekey="BoundField">
                                                    <ItemStyle CssClass="GridViewRowWidth_50" />
                                                </asp:BoundField>
                                               <%-- <asp:TemplateField meta:resourcekey="TemplateField">
                                                    <HeaderTemplate>
                                                        <asp:CheckBox ID="CheckBox1" runat="server" onclick="selectAll(this,'gvPodDetail');"
                                                            meta:resourcekey="CheckBox1" />
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <asp:CheckBox ID="chbSelect" runat="server" meta:resourcekey="chbSelect" />
                                                    </ItemTemplate>
                                                    <FooterTemplate>
                                                        <asp:CheckBox ID="CheckBox2" runat="server" onclick="selectAll(this,'gvPodDetail');"
                                                            meta:resourcekey="CheckBox2" />
                                                    </FooterTemplate>
                                                    <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_40" />
                                                    <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_40" />
                                                </asp:TemplateField>--%>
                                                <asp:BoundField DataField="LineID" HeaderText="行号" FooterText="行号" SortExpression="LineID"
                                                    meta:resourcekey="LineID">
                                                    <ItemStyle CssClass="GridViewRowWidth_50" />
                                                </asp:BoundField>
                                                 <asp:BoundField DataField="ExternOrderID" HeaderText="发货订单号" FooterText="发货订单号" SortExpression="ExternOrderID"
                                                    meta:resourcekey="ExternOrderID">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                 <asp:BoundField DataField="ExternOrderLineID" HeaderText="发货订单行号" FooterText="发货订单行号" SortExpression="ExternOrderLineID"
                                                    meta:resourcekey="ExternOrderLineID">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="OwnerID" HeaderText="货主" FooterText="货主" SortExpression="OwnerID"
                                                    meta:resourcekey="OwnerID">
                                                    <ItemStyle CssClass="GridViewRowWidth_50" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="skuID" HeaderText="货品代码" FooterText="货品代码" SortExpression="skuID"
                                                    meta:resourcekey="skuID">
                                                    <ItemStyle CssClass="GridViewRowWidth_50" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="PackID" HeaderText="包装" FooterText="包装" SortExpression="PackID"
                                                    meta:resourcekey="PackID">
                                                    <ItemStyle CssClass="GridViewRowWidth_50" />
                                                </asp:BoundField>
                                                <asp:TemplateField FooterText="送货数量" HeaderText="送货数量" SortExpression="OriginalQty" meta:resourcekey="Qty">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblQty" runat="server" CssClass="label" Text='<%# GetPreferenceDigit(Eval("OriginalQty").ToString()) %>'
                                                            meta:resourcekey="lblQty"></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="GridViewRowWidth_50" />
                                                </asp:TemplateField>
                                                <asp:TemplateField FooterText="实收数量" HeaderText="实收数量" SortExpression="AcceptQty"
                                                    meta:resourcekey="AcceptedQty">
                                                    <ItemTemplate>
                                                        <asp:TextBox ID="txtAcceptedQty" runat="server" CssClass="textbox" Width="80px" Text='<%# Eval("AcceptQty").ToString() %>'
                                                            onblur="Javascript:dataVer._Is123Or0(this,'lblMsg')" meta:resourcekey="txtAcceptedQty"></asp:TextBox>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="GridViewRowWidth_50" />
                                                </asp:TemplateField>
                                                <asp:TemplateField FooterText="拒收数量" HeaderText="拒收数量" SortExpression="RejectedQty"
                                                    meta:resourcekey="RejectedQty">
                                                    <ItemTemplate>
                                                        <asp:TextBox ID="txtRejectedQty" runat="server" CssClass="textbox" Width="80px" Text='<%# Eval("RejectedQty").ToString() %>'
                                                            onblur="Javascript:dataVer._Is123Or0(this,'lblMsg')" meta:resourcekey="txtRejectedQty"></asp:TextBox>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="GridViewRowWidth_50" />
                                                </asp:TemplateField>
                                                <asp:TemplateField FooterText="丢失数量" HeaderText="丢失数量" SortExpression="LoseQty" meta:resourcekey="LoseQty">
                                                    <ItemTemplate>
                                                        <asp:TextBox ID="txtLoseQty" runat="server" CssClass="textbox" Width="80px" Text='<%# Eval("LoseQty").ToString() %>'
                                                            onblur="Javascript:dataVer._Is123Or0(this,'lblMsg')" meta:resourcekey="txtLoseQty"></asp:TextBox>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="GridViewRowWidth_50" />
                                                </asp:TemplateField>
                                                <asp:TemplateField FooterText="破损数量" HeaderText="破损数量" SortExpression="BreakageQty"
                                                    meta:resourcekey="BreakageQty">
                                                    <ItemTemplate>
                                                        <asp:TextBox ID="txtBreakageQty" runat="server" CssClass="textbox" Width="80px" Text='<%# Eval("BreakageQty").ToString() %>'
                                                            onblur="Javascript:dataVer._Is123Or0(this,'lblMsg')" meta:resourcekey="txtBreakageQty"></asp:TextBox>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="GridViewRowWidth_50" />
                                                </asp:TemplateField>
                                                <asp:TemplateField FooterText="外包装破损数量" HeaderText="外包装破损数量" SortExpression="PkgDemagedQty"
                                                    meta:resourcekey="PkgBreakageQty">
                                                    <ItemTemplate>
                                                        <asp:TextBox ID="txtPkgBreakageQty" runat="server" CssClass="textbox" Width="80px"
                                                            Text='<%# Eval("PkgDemagedQty").ToString() %>' onblur="Javascript:dataVer._Is123Or0(this,'lblMsg')"
                                                            meta:resourcekey="txtPkgBreakageQty"></asp:TextBox>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="GridViewRowWidth_50" />
                                                </asp:TemplateField>
                                                <asp:BoundField DataField="Remark" HeaderText="备注" FooterText="备注" SortExpression="Remark"
                                                    meta:resourcekey="Remark">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                            </Columns>
                                        </asp:GridView>
                                    </div>
                                </td>
                            </tr>
                            <tr style="height: 30px;">
                                <td>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div id="actionDiv" style="background-color: #FFFFFF; position: absolute; display: none;
                    border: none 0 black">
                    <table width="105" border="0" cellspacing="0" cellpadding="0" id="divcontent_menu">
                        <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                            <td class="line" id="tdlnkbtnImportShippingOrder" runat="server" visible="False">
                                <asp:LinkButton ID="lnkbtnImportShippingOrder" runat="server" Text="发货订单导入" OnClientClick="popOrderQuery();"
                                    meta:resourcekey="lnkbtnImportShippingOrder"></asp:LinkButton>
                            </td>
                        </tr>
                        <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                            <td class="line" id="tdlnkbtnSaveQtyWeightCube" runat="server" visible="False">
                                <asp:LinkButton ID="lnkbtnSaveQtyWeightCube" runat="server" Text="更新数量重量体积" OnClick="lnkbtnSaveQtyWeightCube_Click"
                                    meta:resourcekey="lnkbtnSaveQtyWeightCube"></asp:LinkButton>
                            </td>
                        </tr>
                        <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                            <td class="line" id="tdlnkbtnSaveFreight" runat="server" visible="False">
                                <asp:LinkButton ID="lnkbtnSaveFreight" runat="server" Text="更新运费" OnClick="lnkbtnSaveFreight_Click"
                                    meta:resourcekey="lnkbtnSaveFreight"></asp:LinkButton>
                            </td>
                        </tr>
                        <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                            <td class="line" id="tdlnkbtnReceipt" runat="server" visible="False">
                                <asp:LinkButton ID="lnkbtnReceipt" runat="server" Text="收款" OnClick="lnkbtnReceipt_Click"
                                    meta:resourcekey="lnkbtnReceipt"></asp:LinkButton>
                            </td>
                        </tr>
                        <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                            <td class="line" id="tdlnkbtnCancelReceipt" runat="server" visible="False">
                                <asp:LinkButton ID="lnkbtnCancelReceipt" runat="server" Text="取消收款" OnClick="lnkbtnCancelReceipt_Click"
                                    meta:resourcekey="lnkbtnCancelReceipt"></asp:LinkButton>
                            </td>
                        </tr>
                        <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                            <td class="line" id="tdlnkbtnSign" runat="server" visible="true">
                                <asp:LinkButton ID="lnkbtnSign" runat="server" Text="签收" OnClick="lnkbtnSign_Click"
                                    meta:resourcekey="lnkbtnSign"></asp:LinkButton>
                            </td>
                        </tr>
                    </table>
                </div>
                <input type="hidden" id="hiddenFlag" runat="server" />
                <input type="hidden" id="hdnDeliveryOrderID" runat="server" />
                <input type="hidden" id="hdnOrderID" runat="server" />
                <input type="hidden" id="hdnFlag" runat="server" value="0" /></input>
                <input type="hidden" id="hdnLineID" runat="server" />
                <input type="hidden" id="hdnCopy" runat="server" />
                <input type="hidden" id="hdnPageQty" runat="server" />
                <input type="hidden" id="hdnPageType" runat="server" value="0" />
                <input type="hidden" id="hdnInportValue" runat="server" />
            </ContentTemplate>
        </asp:UpdatePanel>
        <input type="hidden" id="hdnFrom" runat="server" />
        <input type="hidden" id="hdnDataFormat" runat="server" />
        <input type="hidden" id="hdncalendarFlag" runat="server" />
        <input type="hidden" id="hdnNumFormat" runat="server" />
    </div>
    </form>
</body>
</html>

<script language="javascript" type="text/javascript" event="onclick" for="document">
		<!--
			hiddenDiv();
		    hiddenCalendarDiv();
		//-->
</script>

